<?php if(!defined("PATH_HD"))exit;C("SHOW_NOTICE",false);?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html";charset="UTF-8" />
	<title>网站风格设置</title>
	<link type="text/css" rel="stylesheet" href="http://localhost/hb/easycms/admin/tpl/public/css/config.css"/>
	<script type='text/javascript' src='http://localhost/hdphp/plugin/jquery-1.8.2.min.js'></script>
	<script type="text/javascript" src="http://localhost/hb/easycms/admin/tpl/public/js/config.js"></script>
</head>
<body>
	<div class='tit'>
		<ul>
			<li class='selected'>基本设置</li>
			<li>网站开关</li>
		</ul>
	</div>
	<div class='setting_wrap'>
		<!-- 基本设置begin -->
		<div class='setting_list show'>
			<form action="<?php echo U('editconfig');?>" method='post'>
				<!--模板风格 -->
				<input type="hidden" name="<?php echo $tpl_config['name'];?>" value="<?php echo $tpl_config['value'];?>"/>
				<div class='setting'>
					<table class='table3'>
					<?php $hd["list"]["n"]["total"]=0;
if(!empty($base_config)):
$hd_list_total = count($base_config);
$hd_list_row = min($hd_list_total,1000);
$hd_list_row = floor($hd_list_row/1);
$hd_list_id=0;
$hd_list_start=1;
$hd_list_step=0;foreach($base_config as $hd_list_key =>$hd_list_value):
if($hd_list_start<1){$hd_list_start++;continue;}
if($hd_list_step %1!=0){$hd_list_step++;continue;}
$hd_list_step++;$hd["list"]["n"]["first"]=$hd_list_id==0?true:false;
$hd["list"]["n"]["last"]=$hd_list_id>=$hd_list_row-1?true:false;
$hd["list"]["n"]["index"]=$hd_list_id+1;
$n=$hd_list_value;?>

			            <tr>
			            	<th width='10%'><?php echo $n['title'];?></th>
			            	<td>
			            	<?php if($n['name']=='flag'){?>
			            		开<input type='radio' name='flag' value='1' <?php if($n['value']==1){?>checked<?php }?>/>
			            		关<input type='radio' name='flag' value='0' <?php if($n['value']==0){?>checked<?php }?>/>
			            	<?php  }else{ ?>
			            		<input type="text" class="input3" name="<?php echo $n['name'];?>" value="<?php echo $n['value'];?>"/>
			                	<span class="desc"><?php echo $n['message'];?></span>
			            	<?php }?>
			            	<td>
			            </tr>
			        <?php if($hd_list_id+1>=$hd_list_row){break;}
$hd_list_id++;
endforeach;
$hd["list"]["n"]["total"]=$hd_list_id+1;
endif;
?>
					</table>
				</div>
				<!---模板风格-->
				<div class='tpl_style'>
					<h3>模板风格</h3>
					<ul>
					<?php $hd["list"]["t"]["total"]=0;
if(!empty($tpl_styles)):
$hd_list_total = count($tpl_styles);
$hd_list_row = min($hd_list_total,1000);
$hd_list_row = floor($hd_list_row/1);
$hd_list_id=0;
$hd_list_start=1;
$hd_list_step=0;foreach($tpl_styles as $hd_list_key =>$hd_list_value):
if($hd_list_start<1){$hd_list_start++;continue;}
if($hd_list_step %1!=0){$hd_list_step++;continue;}
$hd_list_step++;$hd["list"]["t"]["first"]=$hd_list_id==0?true:false;
$hd["list"]["t"]["last"]=$hd_list_id>=$hd_list_row-1?true:false;
$hd["list"]["t"]["index"]=$hd_list_id+1;
$t=$hd_list_value;?>

						<li tplstyle="<?php echo $t['style'];?>" <?php if($t['style']==$tpl_config['value']){?> class='select'<?php }?>>
			                <a href="javascript:void(0);">
			                    <img src="<?php echo _default($t['short'],$defaultjpg);?>"/>
			                </a>
			                <p>
			                    <a href="javascript:void(0);"><?php echo _default($t['name'],'未命名');?></a>
			                </p>
			                <p>
			                	<span><?php echo _default($t['author'],'EasyCMS');?></span>
			                </p>
			                <p>
			                	<span><?php echo _default($t['email'],'EasyCMS@gmail.com');?></span>
			                </p>
			            </li>
			        <?php if($hd_list_id+1>=$hd_list_row){break;}
$hd_list_id++;
endforeach;
$hd["list"]["t"]["total"]=$hd_list_id+1;
endif;
?>
					</ul>
				</div>
				<div class='tijiao'>
					<input type='submit' value='修改' class='bt1'/>
				</div>
			</form>
		</div>
		<!-- 基本设置结束 -->
		<div class='setting_list'>
			222222222222222
		</div>
	</div>
</body>
</html>